import request from '@/utils/request'
// 查询店铺编码列表
export function listCode(query) {
    return request({
      url: '/credits/departmentShop/list',
      method: 'get',
      params: query
    })
  }
  
  // 查询店铺编码详细
  export function getCode(CodeId) {
    return request({
      url: '/credits/departmentShop/selectOne?id=' + CodeId,
      method: 'get'
    })
  }
  
  // 新增店铺编码
  export function addCode(data) {
    return request({
      url: '/credits/departmentShop/add',
      method: 'post',
      data: data
    })
  }
  
  // 修改店铺编码
  export function updateCode(data) {
    return request({
      url: '/credits/departmentShop/update',
      method: 'put',
      data: data
    })
  }
  


  // 删除店铺编码
  export function delCode(CodeId) {
    return request({
      url: '/credits/departmentShop/delete?id=' + CodeId,
      method: 'delete'
    })
  }
  